package com.dfiov.cloud.msmtools.service.feign;

import com.dfiov.cloud.msmtools.entity.vo.msdms.MsRemoteRelationVo;
import com.pateo.qingcloud.framework.common.base.BaseRestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;

//@FeignClient(value = "msdms")
@FeignClient(name = "msdms", url = "http://msdms.pro.dftccloud.t.home/")
public interface MsdmsFeign {


	@RequestMapping(value = "/dms/findRemoteRelation",
			method = RequestMethod.POST,
			produces = MediaType.APPLICATION_JSON_VALUE,
			consumes = MediaType.APPLICATION_JSON_VALUE)
	BaseRestResponse<MsRemoteRelationVo> findRemoteRelation(
			@RequestParam("vin")String vin,
			@RequestParam(value = "withMsisdn") Boolean withMsisdn);
}
